package com.sumer.psychology.blog.domain.model;

import com.sumer.psychology.common.domain.model.AbstractDomainEvent;

/**
 * User: zhenguang.zhu
 * Date: 2014/9/3
 * Time: 8:41
 */
public class CategoryChangedEvent extends AbstractDomainEvent {
    private CategoryId categoryId;
    private String name;

    public CategoryChangedEvent(CategoryId categoryId, String name) {
        super();
        this.categoryId = categoryId;
        this.name = name;
    }

    public CategoryId categoryId() {
        return categoryId;
    }

    public String name() {
        return name;
    }
}
